package com.niiwoo.civet.trade.dto.response;

import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

/**
 * Created by HuangMin on 2018/8/30.
 */
@Data
public class ReceivableDetailResponseDTO implements Serializable {

    //投资订单id 
    private Long investOrderId;

    //标的ID 
    private Long projectId;

    //标的名称 
    private String title;

    //预期年化利率 
    private BigDecimal borrowRate;

    //还款方式（1到期还本息，2等额本息，3按月还息，到期还本） 
    private Byte repaymentType;

    //还款期限 
    private Integer deadline;

    //借款期限单位-1月，2天
    private Byte deadlineUnit;

    //回款详情 
    private List<ReceivableList> list;

    @Data
    public static class ReceivableList implements Serializable {

        //本金 
        private BigDecimal capital;

        //利息 
        private BigDecimal interest;

        //奖励 
        private BigDecimal reward;

        //当前期数 
        private Integer currentPeriod;

        //回款日期 
        private Date receiveDate;

        //回款状态：1已回款，2待回款 
        private Byte receivedStatus;
    }

}
